package yunjiao.designpatterns.interpreter;

/**
 * TODO
 *
 * @author yangyunjiao
 */
public class Number extends TerminalExpression{
    private final double value;

    public Number(double value) {
        this.value = value;
    }

    @Override
    public double interpret() {
        return value;
    }
}
